﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace framework.ui
{
    public partial class SetPath : UserControl
    {
        public SetPath()
        {
            InitializeComponent();
            this.textBox2.Text = Properties.Settings.Default.data_path;
            this.textBox1.Text = Properties.Settings.Default.mapc_path;
            this.textBox3.Text = Properties.Settings.Default.nb_path;
            this.textBox4.Text = Properties.Settings.Default.nuncabola_path;
        }

        private void button1_Click(object sender, EventArgs e)
        {
            Properties.Settings.Default.data_path = this.textBox2.Text;
            Properties.Settings.Default.mapc_path = this.textBox1.Text;
            Properties.Settings.Default.nb_path = this.textBox3.Text;
            Properties.Settings.Default.nuncabola_path = this.textBox4.Text;
            Properties.Settings.Default.Save();
        }
    }
}
